cmake_minimum_required(VERSION 3.18)
project(TestCMakeTools)
add_executable(main main.cpp)
#集成单元测试
include(CTest)
add_test(
    NAME testAdd
    COMMAND main
)

# 5 本地安装
include(GNUInstallDirs)
install(TARGETS main)

# 6 打包
include(CPack)
